var toJS = function (values) {
  var _toJS = function (values) {
    // console.log(values)
    if (Object.prototype.toString.call(values) === '[object Object]') {
      var res = {}
      for (var key in values) {
        if (Object.hasOwnProperty.call(values, key)) {
          res[key] = _toJS(values[key])
        }
      }

      return res
    }

    return values
  }
  return _toJS(values)
}
var obj = new Proxy(
  {
    aa: {
      bb: {
        cc: 11,
      },
    },
  },
  {
    get(target, key, receiver) {
      console.log(key, receiver)
      return target[key]
    },
  }
)
toJS(obj)
// console.log(obj, toJS(obj))
